package com.wanmait.model.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.wanmait.model.entity.Staff;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * TODO
 *
 * @author 羽
 * @date 2020/12/28 2:38
 * 操作Staff的 Mapper 接口
 **/

public interface StaffMapper extends BaseMapper<Staff> {
    List<String> queryAllPerms(Integer id);

    List<Staff> selectStaff(IPage<Staff> page, @Param(Constants.WRAPPER) QueryWrapper queryWrapper);

    List<Staff> selectAllList(Map<String, Object> map);

    List<Integer> queryAllPersId(int loginStaffId);
}
